.div {
    background-color: #ff0000;
    height: 200px;

    @media screen and (min-width: 768px) {
       background-color: #00ff00;
    }
}